import os
# pip install openai
from openai import OpenAI



def get_qwen_client():
    """配置通义千问客户端"""
    return OpenAI(
        # 提前设置好环境变量QWEN_APIKEY的内容
        api_key=  os.getenv("QWEN_APIKEY"),
        base_url="https://dashscope.aliyuncs.com/compatible-mode/v1"
    )